package week2.homework;//************************************************************************************************
//   pp2_3.java           Author:段志轩
//   读取两个浮点数，然后输出它们的和，差和乘积。
//************************************************************************************************
import java.util.Scanner;

public class pp2_3
{
  public static void main(String[] args)
  { 
    double a,b,c,d,e;
 Scanner scan=new Scanner(System.in);
 System.out.println("输入两个浮点数");
a = scan.nextDouble();
b = scan.nextDouble();
c=a+b;
d=a-b;
e=a*b;
 System.out.println("和是:" + c);
 System.out.println("积是:" + e);
 System.out.println("差是:" + d);
  }
 }
